﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IBLL;
using BLLFactory;

namespace Face.Web.login_and_signup
{
    public partial class signup_succ : System.Web.UI.Page
    {
        UserinfoIBLL userinfoIBLL = BLLFactory.DataAccess.getUserinfoIBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            string user = Request.QueryString["user"];
            string token = Request.QueryString["token"];
            if (userinfoIBLL.userValidate(user, token)==true)
            {
                username.Text = user;
                Session["user"] = user;
            }
            else
            {
                Response.Redirect("failure.aspx");
            }
        }
    }
}